<!-- Left side column. contains the logo and sidebar -->
<aside class="main-sidebar">
    <!-- sidebar: style can be found in sidebar.less -->
    <section class="sidebar">
        <!-- Sidebar user panel -->
        <!-- sidebar menu: : style can be found in sidebar.less -->
        <ul class="sidebar-menu" data-widget="tree">
            <li class="header">导航</li>
            {volist name="leftmenu" id="vo"}
                {if ($vo.display)}
                    {if ($vo['child'])}
                    <li class="treeview {in name="$vo.id" value="$curMenu.parentids"}active menu-open{/in}">
                        <a href="#">
                            <i class="fa {$vo.icon}"></i> <span>{$vo.name}</span>
                            <span class="pull-right-container">
                                <i class="fa fa-angle-left pull-right"></i>
                            </span>
                        </a>
                        <ul class="treeview-menu">
                            {foreach $vo['child'] as $v } 
                                {if ($v.display)}
                                    {if ($v['child'])}
                                    <li class="treeview {in name="$v.id" value="$curMenu.parentids"}active menu-open{/in}">
                                        <a href="#">
                                              <i class="fa {$v.icon}"></i> {$v.name}<span class="pull-right-container"><i class="fa fa-angle-left pull-right"></i></span>
                                        </a>
                                        <ul class="treeview-menu">
                                            {foreach $v['child'] as $t}
                                                {if ($t.display)}
                                                    <li class="{if ($t['id'] == $curMenu['id'])}active{/if}">
                                                        <a href="/admin.php/{$t.c}/{$t.a}"><i class="fa {$t.icon}"></i> {$t.name}</a>
                                                    </li>
                                                {/if}
                                            {/foreach}
                                        </ul>
                                    </li>
                                    {else /}
                                        <li class="{if ($v['id'] == $curMenu['id'])}active{/if}">
                                            <a href="/admin.php/{$v.c}/{$v.a}">
                                                <i class="fa {$v.icon}"></i> 
                                                {$v.name}
                                            </a>
                                        </li>
                                    {/if}
                                {/if}
                            {/foreach}
                        </ul>
                    </li>
                    {else /}
                    <li class="{if ($vo['id'] == $curMenu['id'])}active{/if}">
                        <a href="/admin.php/{$vo.c}/{$vo.a}">
                            <i class="fa {$vo.icon}"></i> 
                            <span>{$vo.name}</span>
                        </a>
                    </li>
                    {/if}
                {/if}
            {/volist}
            <li class="header">LABELS</li>
            <li><a href="#"><i class="fa fa-circle-o text-red"></i> <span>Important</span></a></li>
            <li><a href="#"><i class="fa fa-circle-o text-yellow"></i> <span>Warning</span></a></li>
            <li><a href="#"><i class="fa fa-circle-o text-aqua"></i> <span>Information</span></a></li>
        </ul>
    </section>
    <!-- /.sidebar -->
</aside>